<template>
  <div>
    <el-table :data="value" style="width: 100%">
      <el-table-column prop="id" label="主键ID" width="80">
        <template slot-scope="scope">
          <el-input v-model="scope.row.id" />
        </template>
      </el-table-column>
      <el-table-column prop="materialCode" label="物料编码" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.materialCode" />
        </template>
      </el-table-column>
      <el-table-column prop="materialName" label="物料名称" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.materialName" />
        </template>
      </el-table-column>
      <el-table-column prop="materialSpec" label="物料规格" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.materialSpec" />
        </template>
      </el-table-column>
      <el-table-column prop="unit" label="单位" width="80">
        <template slot-scope="scope">
          <el-input v-model="scope.row.unit" />
        </template>
      </el-table-column>
      <el-table-column prop="batchNo" label="批号" width="100">
        <template slot-scope="scope">
          <el-input v-model="scope.row.batchNo" />
        </template>
      </el-table-column>
      <el-table-column prop="warehouse" label="仓库" width="100">
        <template slot-scope="scope">
          <el-input v-model="scope.row.warehouse" />
        </template>
      </el-table-column>
      <el-table-column prop="location" label="库位" width="100">
        <template slot-scope="scope">
          <el-input v-model="scope.row.location" />
        </template>
      </el-table-column>
      <el-table-column prop="actualReturnQty" label="实退数量" width="100">
        <template slot-scope="scope">
          <el-input v-model.number="scope.row.actualReturnQty" type="number" min="0" />
        </template>
      </el-table-column>
      <el-table-column prop="adjustQty" label="退补数量" width="100">
        <template slot-scope="scope">
          <el-input v-model.number="scope.row.adjustQty" type="number" min="0" />
        </template>
      </el-table-column>
      <el-table-column prop="sourceDocument" label="来源单据" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.sourceDocument" />
        </template>
      </el-table-column>
      <el-table-column prop="sourceOrder" label="来源订单" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.sourceOrder" />
        </template>
      </el-table-column>
      <el-table-column prop="remark" label="备注" width="120">
        <template slot-scope="scope">
          <el-input v-model="scope.row.remark" />
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'ReturnMaterialsDetailTable',
  props: {
    value: {
      type: Array,
      default: () => []
    }
  }
}
</script> 